<template>
	<view>
		<view class="Outside" >
			<view class="search-box" @click="getCateClick">
				<uni-icons class="Myicon"  size="15" type="search"></uni-icons>
				<!-- <input type="text" value="" /> -->
				<text class="search-bottom">搜索</text>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			getCateClick(){
				// this.$emit("Myclick")
				uni.navigateTo({
					url:"/subpkg/search/search"
				})
			}
		}
	}
</script>

<style lang="scss">
	.Outside {
		height: 50px;
		background-color: #c00000;
		display: flex;
		align-items: center;
		padding: 0 10px;
	}

	.search-box {
		height: 30px;
		background-color: #fff;
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		border: 1px solid #CCCCCC;
		font-size: 14px;
		border-radius: 18px;
		

		.search-bottom {
			margin-left:4rpx;
		}

		.Myicon {}
	}
</style>
